#ifndef MAINDIALOG_H
#define MAINDIALOG_H

#include <QDialog>
#include <QTcpSocket>

QT_BEGIN_NAMESPACE
namespace Ui {
class mainDialog;
}
QT_END_NAMESPACE

class mainDialog : public QDialog
{
    Q_OBJECT

public:
    mainDialog(QWidget *parent = nullptr);
    ~mainDialog();

private slots:
    void connectSuccess();
    void connectFail();
    void on_btnSend_clicked();
    void recvMsg();

private:
    Ui::mainDialog *ui;
    QTcpSocket* m_sock;
};
#endif // MAINDIALOG_H
